﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleInputUsage
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("This programm collects personal information about you.");
            Console.WriteLine("------------------------------------------------------");

            Console.Write("Your Name: ");
            string name = Console.ReadLine();

            Console.Write("Born Year: ");
            //string sYear = Console.ReadLine();
            //int year = int.Parse(sYear);
            int year = int.Parse(Console.ReadLine());

            Console.WriteLine("--------------------- Summary -----------------------");
            int age = DateTime.Now.Year - year;
            Console.WriteLine(name + " is " + age + " years old.");

            Console.ReadKey();
        }
    }
}
